package edu.cs421.unitproject;

import java.util.StringTokenizer;

public class CreateTokenVal {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String s = "NUM,	ID,BSTRACT,	BOOLEAN,	BREAK,	BYTE,	CASE,	CATCH,	CHAR,	CLASS,	CONST,	CONTINUE,	DEFAULT,	DO,	DOUBLE,	ELSE,	EXTENDS,	FINAL,	FINALLY,	FLOAT,	FOR,	GOTO,	IF,	IMPLEMENTS,	IMPORT,	INSTANCEOF,	INT,	INTERFACE,	LONG,	NATIVE,	NEW,	PACKAGE,	PRIVATE,	PROTECTED,	PUBLIC,	RETURN,	SHORT,	STATIC,	STRICTFP,		LPAREN,	RPAREN,	LBRACE,	RBRACE,	LBRAC,	RBRAC,	SEMI,	COMMA,	PERIOD,	ASSIGN,	GT,	LT,	EXCLAM,	TILDE,	QUEST,	COLON,	EQ,	LEQ,	GEQ,	NEQ,	AND,	OR,	DPLUS,	DMINUS,	PLUS,	MINUS,	TIMES,	DIV,	AMP,	VBAR,	CARET,	PERCENT,	DLT,	DGT,	TGT,	PASSIGN,	MASSIGN,	SASSIGN,	DASSIGN,	AASSIGN,	VASSIGN,	CASSIGN,	PCASSIGN,	DLTASSIGN,	DGTASSIGN,	TGTASSIGN,	,	BS,	HT,	LF,	FF,	CR,	DOUBLEQUOTE,	SINGLEQUOTE,	BACKSLASH,	TRADITIONALCOMMENTL,	TRADITIONALCOMMENTR,	ENDOFLINECOMMENT,		NONZERODIGIT,	DIGIT,	DIGITS,	SIGNEDINTEGER,	HEXDIGIT,	HEXDIGITS,	HEXNUMERAL,	OCTALDIGIT,	OCTALDIGITS,	OCTALNUMERAL,	EXPONENTNUMBER,	LONGVAL,	FLOATVAL,	DOUBLEVAL,	TRUE,	FALSE,	STRINGCHARACTER,	STRINGCHARACTERS";
		
		String strarr[] = s.split(",");
		
		for (int i = 0; i < strarr.length; i++){
			//String val = "reserve(new Word(Tag."+strarr[i]+",\""+strarr[i].toLowerCase()+"\"));";
			String val = "\t public final static String "+ strarr[i].trim() + " = " + "\""+strarr[i].trim()+"\"; ";
			System.out.println(val);
		}

	}

}
